import {request , uploadFile} from "@/utils/request.js";

export default {
  

dologin(data) { //微信快捷登录
  return request({
    url: "/ysapi/weixin/dologin",
    method: "post",
    data: data,
    header: {
      "Content-Type": "application/x-www-form-urlencoded"
    } 
  })

},
phoneLogin(data) { //手机号码快捷登录
  return request({
    url: "api/user/wxlogin",
    method: "get",
    data: data
  })

},

getPhoneCode(data) { 
  return request({
    url: "/api/v1/Sms/sendSms",
    method: "post",
    data: data,
    header: {
      "Content-Type": "application/x-www-form-urlencoded"
    } 
  })


},
mobileLogin(data) { 
  return request({
    url: "/ysapi/v1/user/mobilelogin",
    method: "post",
    data: data,
    header: {
      "Content-Type": "application/x-www-form-urlencoded"
    } 
  })

  
},
getIndexList(data){
  return request({
    url: "/ysapi/v1/enrollment/list",
    method: "get",
    data: data,
  })
},
studentRegister(data) {  //学员注册
  return request({
    url: "/ysapi/v1/user/studentRegister",
    method: "post",
    data: data,
    header: {
      "Content-Type": "application/x-www-form-urlencoded"
    } 
  })

  
},
teacherRegister(data) {  //老师注册
  return request({
    url: "ysapi/v1/user/teacherRegister",
    method: "post",
    data: data,
    header: {
      "Content-Type": "application/x-www-form-urlencoded"
    } 
  })

  
},
adminRegister(data) {  //管理员注册
  return request({
    url: "ysapi/v1/user/adminRegister",
    method: "post",
    data: data,
    header: {
      "Content-Type": "application/x-www-form-urlencoded"
    } 
  })

  
},
accountLogin(data) {  //账号密码登录
  return request({
    url: "/ysapi/v1/user/login",
    method: "post",
    data: data,
    header: {
      "Content-Type": "application/x-www-form-urlencoded"
    } 
  })

  
},
hobbiesList(data) {  //兴趣爱好列表
  return request({
    url: "/api/v1/interest/getList",
    method: "get",
    data: data
  })

  
},
studentSave(data) {  //学员资料编辑
  return request({
    url: "/ysapi/v1/user/save",
    method: "post",
    data: data
    
  })

  
},
qrcode(data) {  //学员资料编辑
  return request({
    url: "/ysapi/v1/wechat/qrcode",
    method: "get",
    data: data
    
  })

  
},
teacherSave(data) {  //老师资料编辑
  return request({
    url: "/ysapi/v1/teacher/save",
    method: "post",
    data: data,
    header: {
      "Content-Type": "application/x-www-form-urlencoded"
    } 
  })

  
},
wechatBind(data) {  //微信绑定
  return request({
    url: "ysapi/v1/wechat/bind",
    method: "get",
    data: data,
 
  })

  
},

upload(data) {
  return request({
    url: "api/v1/upload/upload",
    method: "post",
    data: data,
 
  })
  

  
},

}